<?php
$lazy = URLPRE.'static/template/xuzhou/mobile/images/huancun.jpg';
$menpiao = site_url('mobile/scenery/index');
$meishi = site_url('mobile/trips/index?category=1');
$weidan = site_url('mobile/line?mark=尾单');
$chujing = site_url('mobile/line?cat_id=3');
$zhoubian = site_url('mobile/line?cat_id=2');
$guonei = site_url('mobile/line?cat_id=1');
$jipiao2  = site_url('mobile/flight/index');
?>
<div>
    <div class="micro-main-nav"><ul>
<?php
$default = <<<HTML1
    <li><a href="$zhoubian"><span><i>1</i></span><br />周边游</a></li>
    <li><a href="$guonei"><span><i>2</i></span><br />国内游</a></li>
    <li><a href="$chujing"><span><i>3</i></span><br />出境游</a></li>
    <li><a href="$weidan"  ><span><i>4</i></span><br />尾单</a></li>
    <li><a href="$ctrip_flight" ><span><i>5</i></span><br />机票</a></li>
    <li><a href="$menpiao"><span><i>6</i></span><br />门票</a></li>
    <li><a href="$ctrip_hotel" ><span><i>7</i></span><br />酒店</a></li>
    <li><a href="$meishi" ><span><i>8</i></span><br />美食</a></li>
HTML1;

$template = <<<HTML
{links}
<li><a href="{link}"><span><i>{index}</i></span><br />{name}</a></li>
{/links}
HTML;
diy('mobile_index_top', 'fontlist', $template, 1, $default);
?>
        <!--
        <ul>
            <li><a href="<?php echo site_url('mobile/line?cat_id=2');?>"><span><i>1</i></span><br />周边游</a></li>
            <li><a href="<?php echo site_url('mobile/line?cat_id=1');?>"><span><i>2</i></span><br />国内游</a></li>
            <li><a href="<?php echo site_url('mobile/line?cat_id=3');?>"><span><i>3</i></span><br />出境游</a></li>
            <li><a href="<?php echo site_url('mobile/line?mark=尾单');?>"  ><span><i>4</i></span><br />尾单</a></li>
            <li><a href="<?php echo site_url('mobile/flight/index') ;?>" ><span><i>5</i></span><br />机票</a></li>
            <li><a href="<?php echo site_url('mobile/scenery/index');?>"><span><i>6</i></span><br />门票</a></li>
            <li><a href="<?php echo $ctrip_hotel ;?>"                   ><span><i>7</i></span><br />酒店</a></li>
            <li><a href="<?php echo site_url('mobile/trips/index?category=1');?>" ><span><i>8</i></span><br />美食</a></li>
            <?php echo $ctrip_hotel?>
        </ul>
        -->
        </ul></div>
</div>
<section id="webContent">
    <div class="hot-destination">
        <?php
        $template = <<<TPL
<div class="de-title">{title}</div>
<div class="de-content">
<ul class="de-line-list">{listinfo}
<li><a href="{link}">
    <img src="{pic}" alt="{title}" style="display: inline;"></a><a href="{link}"><p class="area-name">
            <i></i>
            {title}
        </p>
            <p>
                {sub_title}
            </p>
        </a></li>{/listinfo}
</ul>
</div>
</div>
TPL;

        diy('index_body_hot_destination_line', 'imagelist', $template)
        ?>
    <div class="banner-micro" id="banner">
        <div class="box" >
            <?php
            $tpl = <<<TEMPLATE
<ul>
    {listinfo}<li><a href="{link}"> <img src="{pic}" alt="{title}"></a></li>{/listinfo}
</ul>
TEMPLATE;
            diy('weixin_card48', 'imagelist', $tpl);
            ?>
        </div>
        <script type="text/javascript">
            $(function(){
                var slid = $(".box").slider({
                    loop: true
                });
            });
        </script>
    </div>
    <div class="hot-destination" id="hotRouteList">
        <div class="de-title-line">
            <ul>
<?php
$default = <<<HTML2
<li class="this"><a href="$zhoubian">周边</a></li>
<li><a href="$guonei">国内</a></li>
<li><a href="$chujing">出境</a></li>
HTML2;

$TEMPLATE_S = <<<HTML
{links}
<li><a href="{link}">{name}</a></li>
{/links}
HTML;

                diy('index_body_hotline','fontlist',$TEMPLATE_S, 1, $default);?>
            </ul>
            热门线路 </div>
        <div class="de-content">
            <?php

            $tpl = <<<HTML
{linelist}
<dl class="de-hot-line">
    <dt><a href="{link}" title="{line_name}"> <img src="{line_thumb}" alt="{line_name}"></a></dt>
    <dd> <a href="{link}" title="{line_name}">
            <p class="t">{line_name} </p>
            <p class="i"> <span>{dollar}{low_price}</span> {line_trait} </p>
    </a> </dd>
</dl>{/linelist}
HTML;
            if(!empty($info['lines'])){
                $CI = new CI_Module();
                $CI->load->model('diy.diy_model');
                $CI->diy_model->__init_CI(1);
                echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
            }else{
                diy('mobile_hotline_02', 'linelist', $tpl);
            }?>

        </div>
    </div>
    <div class="hot-destination">
        <style type="text/css">
            .destination_zhoubian li:last-child{width:100%!important}
        </style>
        <div class="de-title"> 目的地索引 </div>
        <div class="de-content">
            <div class='ad-box-p'>
                <dl class='de-all-area'>
                    <dt>
                        <?php
                        diy('index_body_index_01','fontlist',"{links}<a href='{link}'><span><i class='top'></i><i class=\"bottom\"></i></span><br />{name}</a>{/links}", 1, "<a href='$zhoubian'><span><i class='top'></i><i class=\"bottom\"></i></span><br />周边</a>");?>
                    </dt>
                    <dd class="destination_zhoubian" style="min-height:90px">
                        <?php
                        $tpl = <<<HTML
<ul>
{links}<li><a href='{link}'>{name}</a></li>{/links}
</ul>
HTML;
                        diy('mobile_destination_01', 'fontlist', $tpl)?>
                    </dd>
                </dl>
            </div>
            <div class='ad-box-p'>
                <dl class='de-all-area'>
                    <dt>
                        <?php
diy('index_body_index_02','fontlist',"{links}<a href='{link}'><span><i class='top'></i><i class=\"bottom\"></i></span><br />{name}</a>{/links}", 1, "    <a href='$guonei'><span><i class='top'></i><i class='bottom'></i></span><br /> 国内</a>");
                        ?>
                    </dt>
                    <dd>
                        <?php
                        $pic = URLPRE.'static/template/xuzhou/mobile/images/arrow_to_bottom.png';
                        $tpl = <<<HTML
<ul>
{prolist}<li><a href='{mobile_link}&cat_id=0'>{name}</a></li>{/prolist}
<li class='click'>
<a href='{more_link}' class='hasmore'><img src="$pic"></a></li>
</ul>
HTML;
                        diy('mobile_destination_04', 'prolist', $tpl)?>
                    </dd>
                </dl>
            </div>
            <div class='ad-box-p'>
                <dl class='de-all-area'>
                    <dt>
<?php
diy('index_body_index_03','fontlist',"{links}<a href='{link}'><span><i class='top'></i><i class=\"bottom\"></i></span><br />{name}</a>{/links}", 1, "<a href='$chujing'><span><i class='top'></i><i class='bottom'></i></span><br />出境</a>");
?>

                    </dt>
                    <dd>
                        <?php
                        $tpl = <<<HTML
<ul>
{links}<li><a href='{link}'>{name}</a></li>{/links}
</ul>
HTML;
                        diy('mobile_destination_03', 'fontlist', $tpl)?>
                        <li class='click'><a href='<?php echo site_url('mobile/line?cat_id=3')?>' class='hasmore'><img src="<?php echo URLPRE?>static/template/xuzhou/mobile/images/arrow_to_bottom.png"></a></li>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
</section>